Skip to content

Fix PR detection during active sessions#49

Merged
Umaaz merged 1 commit into
mainfrom
crisp-glen
Apr 8, 2026
Merged

Fix PR detection during active sessions#49
Umaaz merged 1 commit into
mainfrom
crisp-glen

Conversation

@Umaaz
Copy link
Copy Markdown
Contributor

@Umaaz Umaaz commented Apr 8, 2026

Summary

  • The activity state-tracker hook writes "waiting" when Claude finishes a turn, but the PR detection check in useSessions.ts was gated on "ready" — a state only set as a default on session init, never sent via IPC
  • Changed the condition from state === 'ready' to state === 'waiting' so getPrForBranch fires after each turn completion, detecting PRs created mid-session

Test plan

  • Start a session and have Claude create a PR — verify the PR badge appears on the session tile without restarting the app
  • Verify sessions that already have a known PR don't trigger redundant gh calls

🤖 Generated with Claude Code

The state-tracker hook writes "waiting" when Claude finishes a turn,
but the PR check was gated on "ready" (only set as a default on session
init, never via IPC). This meant PRs created mid-session were never
detected until the app restarted.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Umaaz Umaaz merged commit 981d0d5 into main Apr 8, 2026
3 checks passed
@Umaaz Umaaz deleted the crisp-glen branch April 8, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant